<template>
  <div id="app">
    <el-container>
      <el-aside>
        <NavMenu></NavMenu>
      </el-aside>
      <el-main>
        <Header></Header>
        <HistoryRouter></HistoryRouter>
        <router-view></router-view>
      </el-main>
    </el-container>
    <OrderMsg />
    <addCustomer></addCustomer>
  </div>
</template>

<script>
import NavMenu from "../../components/NavMenu";
import HistoryRouter from "../../components/HistoryRouter";
import Header from "../../components/Header";
import OrderMsg from "../../plugins/Orderdetail";

export default {
  beforeCreate() {
    this.$store.commit("changeOrderClose");
  },
  name: "home",
  components: {
    NavMenu,
    HistoryRouter,
    Header,
    OrderMsg,
  },
  data() {
    return {};
  },
  created() {
    // let userMsg = localStorage.userInfo? JSON.parse(localStorage.userInfo) : {};
    // console.log(userMsg);
    // if(userMsg){
    //   this.loginStatus=true
    // }else{
    //   this.loginStatus=false
    // }
  },
};
</script>

<style>
body,
body {
  margin: 0;
  padding: 0;
}

.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
  width: unset !important;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  padding: 0 !important;
}
/* .el-container >>> .el-main {
  padding: 0;
} */

body > .el-container {
  margin-bottom: 40px;
}

/* .el-container:nth-child(5) .el-aside,
 .el-container:nth-child(6) .el-aside {
   line-height: 260px;
 }

 .el-container:nth-child(7) .el-aside {
  line-height: 320px;
 } */
</style>
